//
//  HRZ_ClassCategoryCell.m
//  EMarket
//
//  Created by 石头 on 2018/5/13.
//  Copyright © 2018年 好日子. All rights reserved.
//

#import "HRZ_ClassCategoryCell.h"

// Controllers

// Models
#import "HRZ_ClassGoodsItem.h"
// Views

// Vendors

// Categories

// Others

@interface HRZ_ClassCategoryCell()

/* 标题 */
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UIView *indicatorView;

@end

@implementation HRZ_ClassCategoryCell


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if (selected) {
        _titleLabel.textColor = [UIColor redColor];
        _indicatorView.hidden = NO;
        self.backgroundColor = [UIColor whiteColor];
    } else {
        _indicatorView.hidden = YES;
        _titleLabel.textColor = [UIColor blackColor];
        self.backgroundColor = [UIColor clearColor];
    }

    // Configure the view for the selected state
}

- (void)setTitleItem:(HRZ_ClassGoodsItem *)titleItem {
    _titleItem = titleItem;
    self.titleLabel.text = titleItem.title;
}

@end
